package cn.hgj.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
public class RabbitConfig {
    @Bean
    public Queue orderProcessQueue() {
        return new Queue("order.process.queue", true);
    }

    @Bean
    public Queue testQueue() {
        return new Queue("test", true);
    }

    @Bean
    public Jackson2JsonMessageConverter jsonMessageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}
